// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// 公共css样式
import Vue from 'vue';
import 'tachyons/css/tachyons.min.css';
// import 'element-ui/lib/theme-chalk/index.css';
import ElementUI from 'element-ui';
import axios from '@/utils/http';
import { sync } from 'vuex-router-sync';

import store from './store';
import App from './App';
import router from './router';

Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.prototype.$http = axios;
const unsync = sync(store, router);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
});
unsync();
